package com.wngbms.designpattern;

public class TransactionLock {

    public boolean lock(String id) {
        return Transaction.RedisDistributedLock.getSingletonIntance().lockTransction(id);
    }

    public void unlock(String id) {
        Transaction.RedisDistributedLock.getSingletonIntance().unlockTransction(id);
    }

}
